package com.dlc.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlc.shop.bean.model.OrderVirtualVerifyLog;
import com.dlc.shop.bean.vo.OrderVirtualVerifyLogVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单虚拟商品核销记录
 *
 * @author LGH
 * @date 2023-03-07 16:48:15
 */
public interface OrderVirtualVerifyLogMapper extends BaseMapper<OrderVirtualVerifyLog> {

    /**
     * 根据核销码获取核销记录
     * @param writeOffCode
     * @return
     */
    List<OrderVirtualVerifyLog> listByWriteOffCode(@Param("writeOffCode") String writeOffCode);


    /**
     * 根据订单编号获取券码核销记录
     * @param orderNumber
     * @return
     */
    OrderVirtualVerifyLogVO getByOrderNumber(@Param("orderNumber") String orderNumber);
}
